package Test;

import com.config.MyBatisConfig;
import com.config.SpringConfig;
import com.mapper.NewbookProposalMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes={SpringConfig.class, MyBatisConfig.class})
public class NewbookProposalMapperTest {

    @Autowired
    private NewbookProposalMapper newbookProposalMapper;

    @Test
    public void  searchNewbookProposalTest(){
        System.out.println(newbookProposalMapper.searchNewbookProposal());
    }

    @Test
    public void delNewbookProposalTest(){
        System.out.println(newbookProposalMapper.delNewbookProposal("1"));
    }
}
